package com.xyz.entity.mapper;

import com.xyz.entity.pojo.EquipmentInfo;
import com.xyz.entity.pojo.EquipmentInfoExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

@Repository
public interface EquipmentInfoMapper {
    long countByExample(EquipmentInfoExample example);

    int deleteByExample(EquipmentInfoExample example);

    int deleteByPrimaryKey(Long id);

    int insert(EquipmentInfo record);

    int insertSelective(EquipmentInfo record);

    List<EquipmentInfo> selectByExampleWithBLOBs(EquipmentInfoExample example);

    List<EquipmentInfo> selectByExample(EquipmentInfoExample example);

    @Select("select id from equipment_info where em_name=#{name}")
    Long emId(String name);

    EquipmentInfo selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") EquipmentInfo record, @Param("example") EquipmentInfoExample example);

    int updateByExampleWithBLOBs(@Param("record") EquipmentInfo record, @Param("example") EquipmentInfoExample example);

    int updateByExample(@Param("record") EquipmentInfo record, @Param("example") EquipmentInfoExample example);

    int updateByPrimaryKeySelective(EquipmentInfo record);

    int updateByPrimaryKeyWithBLOBs(EquipmentInfo record);

    int updateByPrimaryKey(EquipmentInfo record);


    EquipmentInfo selectByCode(String code);
}